            <form class="buttons" action="{{message.get_absolute_url}}" method="post">{% csrf_token %}
                {% if message.status == "-" %}
                    <input type="submit" name="escalate" value="Escalate to RT">
                    <input type="submit" name="discard" value="Discard">
                {% else %}{% if message.status == "I" %}
                    <input type="submit" name="escalate" value="Escalate to RT">
                    <input type="submit" name="undiscard" value="Undiscard">
                {% else %}
                    Forwarded to RT as ticket <a href="{{message.get_rt_url}}">#{{message.ticket}}</a>
                {% endif %}
                {% endif %}
            </form>

